﻿using AutoMapper;
using CommonModel;
using Domain.Database;

namespace MainService
{
    /// <summary>
    /// 对象映射配置（使用AutoMapper）
    /// </summary>
    public class ObjectMapperConfig
    {
        /// <summary>
        /// 注册映射规则
        /// </summary>
        public static void RegisterMappings()
        {
            //https://www.cnblogs.com/gl1573/p/13098031.html
            Mapper.Initialize(cfg => cfg.CreateMap<ConfigRequest, Config>());
        }
    }
}